import * as path from "path";
import { APP_NAME } from "@/settings";

export const winparams = {
    width: 1093,
    height: 729,
    minWidth: 886,
    minHeight: 538,
    resizable: true,
    transparent: false, //透明
    opacity: 1,
    hasShadow: true,
    movable: true, // 可移动
    minimizable: true,
    maximizable: true,
    closable: true,
    focusable: true,
    alwaysOnTop: false,
    fullscreen: false,
    fullscreenable: true,
    fullscreenWindowTitle: false,
    kiosk: false,
    title: APP_NAME,
    icon: "../../../public/favicon_256x256.ico",
    show: true,
    paintWhenInitiallyHidden: true,
    frame: false,
    parent: null,
    webPreferences: {
        devTools: true,
        nodeIntegration: true,
        contextIsolation: true,
        preload: path.join(__dirname, 'preload.js',),
    },
};
